<?php

declare(strict_types=1);

/**
 * @Author:     Frank
 * @contact     frank_hhm@163.com
 * @Date:       2023-02-07 16:03:36
 * @Last Modified time: 2023-02-15 12:52:29
 */
namespace addon\wechat\event;
use addon\wechat\services\WechatPayService;

class WechatPayment
{
    /**
     * 构建微信支付
     */
    public function handle($data = [])
    {
        // return [];
        $WxPay = new WechatPayService;
        $payment = $WxPay->create($data['order_no'],$data['openid'],$data['pay_price'], $data['source'],$data['description'] ?? '');
        return $payment;
    }

}